package com.yuqih.common.json;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

public class DefaultObjectMapperConfiguration implements IObjectMapperConfiguration {

	public static final DefaultObjectMapperConfiguration instance = new DefaultObjectMapperConfiguration();
	
	@Override
	public void configure(ObjectMapper objectMapper) {
		objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
		objectMapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
	}

}
